const wrapper = require('../utils/responseWrapper');


const parentId = '1';
const lists = [];
if (parentId.length < 7) {
  for (let i = 1; i < 10; i++) {
    const key = `${parentId}-${i}`;
    lists.push({
      id: key,
      name: i < 5 ? `部门${key}` : `员工${key}`,
      type: i < 5 ? 'dept' : 'user',
      isLeaf: i >= 5 || key.length >= 7,
    });
  }
}

module.exports = wrapper(lists);
console.log(JSON.stringify(module.exports));
